package cn.chenhao.user.domain;

import cn.chenhao.basic.domain.BasicDomain;
import lombok.Data;

import java.util.Date;

@Data
public class User extends BasicDomain {

    private String username;
    private String email;
    private String phone;
    /* 盐值，MD5密码加密 */
    private String salt;
    private String password;
    /* 状态：0-已注册，1-已激活，-1-禁用 */
    private Integer state = 1;
    private Integer age;
    /* 注册时间 */
    private Date createtime = new Date();
    /* 头像 */
    private String headImg;

    private Long logininfo_id;

}
